import java.io.*;
import java.util.Scanner;
import java.nio.file.Paths;


/**
 * Copy Text Files
 * @author andy
 */
public class CopyTest {
  public static void main(String[] args) throws IOException {
    String from = args[0];
    String to   = args[1];

    Scanner in = new Scanner(Paths.get(from));
    PrintWriter out = new PrintWriter(to);

    while (in.hasNext()) {
      out.println(in.nextLine());
      out.flush(); // It's very necessary to flush;
    }

    out.close();
  }
}
